<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var Obj = {
            name: '张三',
            age: 27,
            sex: '男',
            run: function () {
                console.log('就这样跑来跑去');
            }
        }

        console.log('-------------');
        for (var k in Obj) {
            console.log(k);
            console.log(Obj[k]);
        }
    //          对象里面的属性是无序的
    //          一般用 k 做变量  key        key------value
    </script>
</body>

</html>